﻿using System;
using System.IO;
namespace Skyper.Shared {
	public interface IState {
		#region Public
		/// <summary>
		/// Suspends this instance to the specified stream.
		/// </summary>
		/// <param name="stream">The stream.</param>
		/// <returns></returns>
		bool Suspend(Stream stream);
		/// <summary>
		/// Resumes instance from the specified stream.
		/// </summary>
		/// <param name="stream">The stream.</param>
		/// <returns>True, if operation succeeds.</returns>
		bool Resume(Stream stream);
		#endregion
	}
}
